<?php
class ListViewModel extends ViewModel{
	protected $tableName='goods';
	protected $viewFields=array(
		'goods'=>array(
			'id','name','sprice','listpic',
			'_type'=>'LEFT'
			),
		'brand'=>array(
			'id'=>'bid','name'=>'bname',
			'logo',
			'_on'=>'goods.bid=brand.id'
			)
		);
}
?>